//
//  BaseQuestion.swift
//  CrseAsst
//
//  Created by 申铭 on 2024/3/5.
//

import Foundation

class BaseQuestion {
    
    /// 输入答案
    /// - Parameters:
    ///   - answer: 答案
    ///   - numerator: 分子
    ///   - denominator: 分母
    func inputAnswer(_ answer: String?, numerator: Float = 0.0, denominator: Float = 1) {
        
    }
    
    /// LaTex公式
    func getTopicDesc() -> String {
        return ""
    }
    
    /// 检查答案是否正确
    func checkAnswer() -> Bool {
        return false
    }
    
    /// 描述题目和最后的结果
    func getResultDesc() -> NSMutableAttributedString {
        return NSMutableAttributedString(string: "")
    }
}
